import App from './App'
// 引入uview-plus
import uviewPlus, { setConfig } from '@/uni_modules/uview-plus/index.js'
import { routeInterceptor,requestInterceptor} from './interceptors'
import store from './store'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.use(store);
app.use(uviewPlus);
app.use(requestInterceptor)
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(store);
  app.use(uviewPlus);
  app.use(routeInterceptor)
  app.use(requestInterceptor)
  return {
    app
  }
}
// #endif